<?php
class AppController extends Controller {
	
	var $helpers = array('Html','Form','Javascript'); 
	var $components = array('Session');
	
	function beforeRender() {
		$user = $this->Session->read('Auth.User.id');
		$this->set('loggedInAsId', $user);
		$username = $this->Session->read('Auth.User.username');
		$this->set('loggedInAsName', $username);
	}
}
?>